package com.nf.action;

import entity.Student;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestAction {

    @ResponseBody
    @RequestMapping("/kkkk")
    public Student jkljk(){
        Student s = new Student();
        s.setName("xiaoming");
        s.setAge(17);
        return s;
    }

}
